.class public Lcom/fiberhome/xloc/broadcast/g;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/fiberhome/xloc/c/d;


# instance fields
.field final synthetic a:Lcom/fiberhome/xloc/broadcast/LocalService;


# direct methods
.method public constructor <init>(Lcom/fiberhome/xloc/broadcast/LocalService;)V
    .locals 0

    iput-object p1, p0, Lcom/fiberhome/xloc/broadcast/g;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 2

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/g;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v0}, Lcom/fiberhome/xloc/broadcast/LocalService;->c(Lcom/fiberhome/xloc/broadcast/LocalService;)Lcom/fiberhome/xloc/c/b;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/g;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v0}, Lcom/fiberhome/xloc/broadcast/LocalService;->c(Lcom/fiberhome/xloc/broadcast/LocalService;)Lcom/fiberhome/xloc/c/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/fiberhome/xloc/c/b;->b()V

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/g;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/fiberhome/xloc/broadcast/LocalService;->a(Lcom/fiberhome/xloc/broadcast/LocalService;Lcom/fiberhome/xloc/c/b;)Lcom/fiberhome/xloc/c/b;

    :cond_0
    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/g;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/e;->a(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string/jumbo v0, "\u4e0a\u4f20:\u4efb\u52a1\u53d6\u6d88:\u65e0\u53ef\u7528\u7f51\u7edc"

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/g;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/fiberhome/xloc/broadcast/LocalService;->a(Lcom/fiberhome/xloc/broadcast/LocalService;Z)Z

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/g;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-virtual {v0}, Lcom/fiberhome/xloc/broadcast/LocalService;->stopSelf()V

    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/g;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/g;->a:Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-static {v1}, Lcom/fiberhome/xloc/broadcast/LocalService;->f(Lcom/fiberhome/xloc/broadcast/LocalService;)Lcom/fiberhome/xloc/d/d;

    move-result-object v1

    iget-object v1, v1, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v1, v1, Lcom/fiberhome/xloc/d/c;->l:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/fiberhome/xloc/broadcast/LocalService;->a(Lcom/fiberhome/xloc/broadcast/LocalService;Ljava/lang/String;)V

    goto :goto_0
.end method
